{{useCss "/app-pages/css/user/post.scss"}}
<div class="post">
	<div class="postlist">
		{{#if $Cache.user.post.list.length}}
		{{#each $Cache.user.post.list}}
		<div class="item">
			<div class="img">
				<img bind-src="{{preview_img||'/images/public/39_avatar_small.jpg'}}?imageView2/1/w/50/h/50" />
			</div>
			<div class="title">
				<href to="/article.html?_id={{_id}}">{{title}}</href>
			</div>
			<div class="time">{{_module_name}}，发布于：{{#Time createtime}}，更新于：{{#Time updatetime||createtime}}</div>
			<div class="methods">
				<a event-click="{{'$Top.$Event.user.post.delete'}}">删除</a>
			</div>
		</div>
		{{/each}}
		<div class="pagebox">
            <a class="button icon-angle-left" event-click="{{'$Event.user.post.prePage'}}"></a>
            {{#each $Cache.user.post.pages}}
            <href to="/user/post.html?page={{$Index}}&num={{$Top.$Cache.user.post.page_num}}" class="{{($Top.$Cache.user.post.current_page==$Index)&&'focus'}}">{{$Index+1}}</href>
            {{/each}}
            <a class="button icon-angle-right" event-click="{{'$Event.user.post.nextPage'}}"></a>
        </div>
		{{#else}}

		{{/if}}
	</div>
</div>
